package com.pz.account.service.impl;

import com.pz.account.mapper.CommAccountMapper;
import com.pz.account.service.CommAccountService;
import com.pz.art.domain.AssoMemberInitiation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Service
@Primary
public class CommAccountServiceImpl implements CommAccountService {

    @Autowired
    private CommAccountMapper commAccountMapper;

    @Override
    public void inserterAssociation(AssoMemberInitiation assoMemberInitiation) {
        System.out.println(assoMemberInitiation);
        assoMemberInitiation.setStatus(1);
        assoMemberInitiation.setUnit_id(0L);
        assoMemberInitiation.setCreate_time(new java.sql.Date(new java.util.Date().getTime()));
         commAccountMapper.inserterAssociation(assoMemberInitiation);
    }
}
